package com.twu.biblioteca;

public class Movie extends Item {
    public final String director;
    public final String yearOfRelease;
    public final String rating;

    public Movie(String name, String Director, String yearOfPublication, String rating, boolean checkedOut) {
        super(name, checkedOut);
        this.director = Director;
        this.yearOfRelease = yearOfPublication;
        this.rating = rating;
    }


    @Override
    protected Object[] fields() {
        return new Object[]{name, director, yearOfRelease, rating};
    }
}
